<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (Mac OS): CPTPlotRange Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (Mac OS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('interface_c_p_t_plot_range.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">CPTPlotRange Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CPTPlotRange" --><!-- doxytag: inherits="NSObject,NSCoding-p-p,NSCopying-p-p,NSMutableCopying-p-p" -->
<p>Defines an immutable range of plot data.  
 <a href="interface_c_p_t_plot_range.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for CPTPlotRange:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_plot_range__inherit__graph.png" border="0" usemap="#_c_p_t_plot_range_inherit__map" alt="Inheritance graph"/></div>
<map name="_c_p_t_plot_range_inherit__map" id="_c_p_t_plot_range_inherit__map">
<area shape="rect" id="node15" href="interface_c_p_t_mutable_plot_range.html" title="Defines a mutable range of plot data." alt="" coords="283,246,444,277"/><area shape="rect" id="node2" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="124,86,204,117"/><area shape="rect" id="node4" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,6,123,37"/><area shape="rect" id="node6" href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html" title="\&lt;NSKeyValueBindingCreation&#45;p\&gt;" alt="" coords="146,6,384,37"/><area shape="rect" id="node8" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="228,86,349,117"/><area shape="rect" id="node10" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html" title="\&lt;NSCopying&#45;p\&gt;" alt="" coords="374,86,503,117"/><area shape="rect" id="node12" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSMutableCopying_Protocol/Reference/Reference.html" title="\&lt;NSMutableCopying&#45;p\&gt;" alt="" coords="527,86,707,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for CPTPlotRange:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_plot_range__coll__graph.png" border="0" usemap="#_c_p_t_plot_range_coll__map" alt="Collaboration graph"/></div>
<map name="_c_p_t_plot_range_coll__map" id="_c_p_t_plot_range_coll__map">
<area shape="rect" id="node2" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="124,86,204,117"/><area shape="rect" id="node4" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,6,123,37"/><area shape="rect" id="node6" href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html" title="\&lt;NSKeyValueBindingCreation&#45;p\&gt;" alt="" coords="146,6,384,37"/><area shape="rect" id="node8" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="228,86,349,117"/><area shape="rect" id="node10" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html" title="\&lt;NSCopying&#45;p\&gt;" alt="" coords="374,86,503,117"/><area shape="rect" id="node12" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSMutableCopying_Protocol/Reference/Reference.html" title="\&lt;NSMutableCopying&#45;p\&gt;" alt="" coords="527,86,707,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_c_p_t_plot_range-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Public Class Methods</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Factory Methods</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_c_p_t_plot_range.html#a93a5cdd8e0756d5692e62631385ddfb7">plotRangeWithLocation:length:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates and returns a new <a class="el" href="interface_c_p_t_plot_range.html" title="Defines an immutable range of plot data.">CPTPlotRange</a> instance initialized with the provided location and length.  <a href="#a93a5cdd8e0756d5692e62631385ddfb7"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Instance Methods</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Initialization</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_plot_range.html#a954aa1c4e17d07c9cc3ec37ae9bbd0cc">initWithLocation:length:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a newly allocated <a class="el" href="interface_c_p_t_plot_range.html" title="Defines an immutable range of plot data.">CPTPlotRange</a> object with the provided location and length.  <a href="#a954aa1c4e17d07c9cc3ec37ae9bbd0cc"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Checking Ranges</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_plot_range.html#ad0ea31c9410605b61864346b5cf70e48">contains:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether a given number is inside the range.  <a href="#ad0ea31c9410605b61864346b5cf70e48"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_plot_range.html#ac9f8c06f95de6f58a7970b0bd1a0d4d5">containsDouble:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether a given number is inside the range.  <a href="#ac9f8c06f95de6f58a7970b0bd1a0d4d5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_plot_range.html#ac57ed5a93c31a89f95eaf392087286e9">isEqualToRange:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether a given range is equal to the range of the receiver.  <a href="#ac57ed5a93c31a89f95eaf392087286e9"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Range Comparison</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="_c_p_t_plot_range_8h.html#ad92f84ba04a8d6ee647958d00308cf18">CPTPlotRangeComparisonResult</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_plot_range.html#a45e8fa6852f7d3bc5c021aae072a216c">compareToNumber:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares a number to the range, determining if it is in the range, or above or below it.  <a href="#a45e8fa6852f7d3bc5c021aae072a216c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="_c_p_t_plot_range_8h.html#ad92f84ba04a8d6ee647958d00308cf18">CPTPlotRangeComparisonResult</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_plot_range.html#af90426ed0320da192187e2a5742e40f0">compareToDecimal:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares a number to the range, determining if it is in the range, or above or below it.  <a href="#af90426ed0320da192187e2a5742e40f0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="_c_p_t_plot_range_8h.html#ad92f84ba04a8d6ee647958d00308cf18">CPTPlotRangeComparisonResult</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_plot_range.html#a193ff5eddba438e2080866220cdb0516">compareToDouble:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares a number to the range, determining if it is in the range, or above or below it.  <a href="#a193ff5eddba438e2080866220cdb0516"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Range Limits</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#a4a08297f54ea2d501bd8746f77f06d75">location</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The starting value of the range.  <a href="#a4a08297f54ea2d501bd8746f77f06d75"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#a079301917de2e7c77155cea95f6bb93c">length</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The length of the range.  <a href="#a079301917de2e7c77155cea95f6bb93c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adc543d1939579179e9d6a4614e617a45"></a><!-- doxytag: member="CPTPlotRange::end" ref="adc543d1939579179e9d6a4614e617a45" args="" -->
<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#adc543d1939579179e9d6a4614e617a45">end</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The ending value of the range, equivalent to <a class="el" href="interface_c_p_t_plot_range.html#a4a08297f54ea2d501bd8746f77f06d75">location </a> + <a class="el" href="interface_c_p_t_plot_range.html#a079301917de2e7c77155cea95f6bb93c">length </a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#a447a54ef48bca11fcbae18587d6a424f">locationDouble</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The starting value of the range as a <code>double</code>.  <a href="#a447a54ef48bca11fcbae18587d6a424f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#aa7817342686ff669df468071ffae44c3">lengthDouble</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The length of the range as a <code>double</code>.  <a href="#aa7817342686ff669df468071ffae44c3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa01772dc9e183b18fddb47204b8fe77e"></a><!-- doxytag: member="CPTPlotRange::endDouble" ref="aa01772dc9e183b18fddb47204b8fe77e" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#aa01772dc9e183b18fddb47204b8fe77e">endDouble</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The ending value of the range as a <code>double</code>, equivalent to <a class="el" href="interface_c_p_t_plot_range.html#a447a54ef48bca11fcbae18587d6a424f">locationDouble </a> + <a class="el" href="interface_c_p_t_plot_range.html#aa7817342686ff669df468071ffae44c3">lengthDouble </a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a141a2b5f4b14eee65bd61d121477850e"></a><!-- doxytag: member="CPTPlotRange::minLimit" ref="a141a2b5f4b14eee65bd61d121477850e" args="" -->
<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#a141a2b5f4b14eee65bd61d121477850e">minLimit</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The minimum extreme value of the range. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af95c83cdf0b6f8a6b98402febdda6147"></a><!-- doxytag: member="CPTPlotRange::midPoint" ref="af95c83cdf0b6f8a6b98402febdda6147" args="" -->
<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#af95c83cdf0b6f8a6b98402febdda6147">midPoint</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The middle value of the range. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62480dc618823e2efec97c8ebe1090d6"></a><!-- doxytag: member="CPTPlotRange::maxLimit" ref="a62480dc618823e2efec97c8ebe1090d6" args="" -->
<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#a62480dc618823e2efec97c8ebe1090d6">maxLimit</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The maximum extreme value of the range. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a211376d108e43009457867b616fe8f3b"></a><!-- doxytag: member="CPTPlotRange::minLimitDouble" ref="a211376d108e43009457867b616fe8f3b" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#a211376d108e43009457867b616fe8f3b">minLimitDouble</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The minimum extreme value of the range as a <code>double</code>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae643ffe8042fcc24173c8cd4dc82e558"></a><!-- doxytag: member="CPTPlotRange::midPointDouble" ref="ae643ffe8042fcc24173c8cd4dc82e558" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#ae643ffe8042fcc24173c8cd4dc82e558">midPointDouble</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The middle value of the range as a <code>double</code>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a71430ba5a14b9e09829b95fbc2d37479"></a><!-- doxytag: member="CPTPlotRange::maxLimitDouble" ref="a71430ba5a14b9e09829b95fbc2d37479" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_plot_range.html#a71430ba5a14b9e09829b95fbc2d37479">maxLimitDouble</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The maximum extreme value of the range as a <code>double</code>. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Defines an immutable range of plot data. </p>
</div><hr/><h2>Method Documentation</h2>
<a class="anchor" id="af90426ed0320da192187e2a5742e40f0"></a><!-- doxytag: member="CPTPlotRange::compareToDecimal:" ref="af90426ed0320da192187e2a5742e40f0" args="(NSDecimal number)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="_c_p_t_plot_range_8h.html#ad92f84ba04a8d6ee647958d00308cf18">CPTPlotRangeComparisonResult</a>) <a class="el" href="interface_c_p_t_plot_range.html#af90426ed0320da192187e2a5742e40f0">compareToDecimal:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>)&#160;</td>
          <td class="paramname"><em>number</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compares a number to the range, determining if it is in the range, or above or below it. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>The number to check. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The comparison result. </dd></dl>

</div>
</div>
<a class="anchor" id="a193ff5eddba438e2080866220cdb0516"></a><!-- doxytag: member="CPTPlotRange::compareToDouble:" ref="a193ff5eddba438e2080866220cdb0516" args="(double number)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="_c_p_t_plot_range_8h.html#ad92f84ba04a8d6ee647958d00308cf18">CPTPlotRangeComparisonResult</a>) <a class="el" href="interface_c_p_t_plot_range.html#a193ff5eddba438e2080866220cdb0516">compareToDouble:</a> </td>
          <td></td>
          <td class="paramtype">(double)&#160;</td>
          <td class="paramname"><em>number</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compares a number to the range, determining if it is in the range, or above or below it. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>The number to check. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The comparison result. </dd></dl>

</div>
</div>
<a class="anchor" id="a45e8fa6852f7d3bc5c021aae072a216c"></a><!-- doxytag: member="CPTPlotRange::compareToNumber:" ref="a45e8fa6852f7d3bc5c021aae072a216c" args="(NSNumber *number)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="_c_p_t_plot_range_8h.html#ad92f84ba04a8d6ee647958d00308cf18">CPTPlotRangeComparisonResult</a>) <a class="el" href="interface_c_p_t_plot_range.html#a45e8fa6852f7d3bc5c021aae072a216c">compareToNumber:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSNumber_Class/Reference/Reference.html">NSNumber</a> *)&#160;</td>
          <td class="paramname"><em>number</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compares a number to the range, determining if it is in the range, or above or below it. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>The number to check. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The comparison result. </dd></dl>

</div>
</div>
<a class="anchor" id="ad0ea31c9410605b61864346b5cf70e48"></a><!-- doxytag: member="CPTPlotRange::contains:" ref="ad0ea31c9410605b61864346b5cf70e48" args="(NSDecimal number)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>) <a class="el" href="interface_c_p_t_plot_range.html#ad0ea31c9410605b61864346b5cf70e48">contains:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>)&#160;</td>
          <td class="paramname"><em>number</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines whether a given number is inside the range. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>The number to check. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if <code>location</code> ≤ <code>number</code> ≤ <code>end</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="ac9f8c06f95de6f58a7970b0bd1a0d4d5"></a><!-- doxytag: member="CPTPlotRange::containsDouble:" ref="ac9f8c06f95de6f58a7970b0bd1a0d4d5" args="(double number)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>) <a class="el" href="interface_c_p_t_plot_range.html#ac9f8c06f95de6f58a7970b0bd1a0d4d5">containsDouble:</a> </td>
          <td></td>
          <td class="paramtype">(double)&#160;</td>
          <td class="paramname"><em>number</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines whether a given number is inside the range. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>The number to check. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if <code>location</code> ≤ <code>number</code> ≤ <code>end</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a954aa1c4e17d07c9cc3ec37ae9bbd0cc"></a><!-- doxytag: member="CPTPlotRange::initWithLocation:length:" ref="a954aa1c4e17d07c9cc3ec37ae9bbd0cc" args="(NSDecimal loc,[length] NSDecimal len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>) initWithLocation: </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>)&#160;</td>
          <td class="paramname"><em>loc</em></td>
        </tr>
        <tr>
          <td class="paramkey">length:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>)&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes a newly allocated <a class="el" href="interface_c_p_t_plot_range.html" title="Defines an immutable range of plot data.">CPTPlotRange</a> object with the provided location and length. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">loc</td><td>The starting location of the range. </td></tr>
    <tr><td class="paramname">len</td><td>The length of the range. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The initialized <a class="el" href="interface_c_p_t_plot_range.html" title="Defines an immutable range of plot data.">CPTPlotRange</a> object. </dd></dl>

</div>
</div>
<a class="anchor" id="ac57ed5a93c31a89f95eaf392087286e9"></a><!-- doxytag: member="CPTPlotRange::isEqualToRange:" ref="ac57ed5a93c31a89f95eaf392087286e9" args="(CPTPlotRange *otherRange)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>) <a class="el" href="interface_c_p_t_plot_range.html#ac57ed5a93c31a89f95eaf392087286e9">isEqualToRange:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_p_t_plot_range.html">CPTPlotRange</a> *)&#160;</td>
          <td class="paramname"><em>otherRange</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines whether a given range is equal to the range of the receiver. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">otherRange</td><td>The range to check. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the ranges both have the same location and length. </dd></dl>

</div>
</div>
<a class="anchor" id="a93a5cdd8e0756d5692e62631385ddfb7"></a><!-- doxytag: member="CPTPlotRange::plotRangeWithLocation:length:" ref="a93a5cdd8e0756d5692e62631385ddfb7" args="(NSDecimal loc,[length] NSDecimal len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>) plotRangeWithLocation: </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>)&#160;</td>
          <td class="paramname"><em>loc</em></td>
        </tr>
        <tr>
          <td class="paramkey">length:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>)&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and returns a new <a class="el" href="interface_c_p_t_plot_range.html" title="Defines an immutable range of plot data.">CPTPlotRange</a> instance initialized with the provided location and length. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">loc</td><td>The starting location of the range. </td></tr>
    <tr><td class="paramname">len</td><td>The length of the range. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new <a class="el" href="interface_c_p_t_plot_range.html" title="Defines an immutable range of plot data.">CPTPlotRange</a> instance initialized with the provided location and length. </dd></dl>

</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="a079301917de2e7c77155cea95f6bb93c"></a><!-- doxytag: member="CPTPlotRange::length" ref="a079301917de2e7c77155cea95f6bb93c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- CPTPlotRange:<code> [read, assign]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The length of the range. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="interface_c_p_t_plot_range.html#aa7817342686ff669df468071ffae44c3" title="The length of the range as a double.">lengthDouble</a> </dd></dl>

<p>Reimplemented in <a class="el" href="interface_c_p_t_mutable_plot_range.html#a8af4c39b1f09fc3b3f68f4183960825c">CPTMutablePlotRange</a>.</p>

</div>
</div>
<a class="anchor" id="aa7817342686ff669df468071ffae44c3"></a><!-- doxytag: member="CPTPlotRange::lengthDouble" ref="aa7817342686ff669df468071ffae44c3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- CPTPlotRange:<code> [read, assign]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The length of the range as a <code>double</code>. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="interface_c_p_t_plot_range.html#a079301917de2e7c77155cea95f6bb93c" title="The length of the range.">length</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a4a08297f54ea2d501bd8746f77f06d75"></a><!-- doxytag: member="CPTPlotRange::location" ref="a4a08297f54ea2d501bd8746f77f06d75" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- CPTPlotRange:<code> [read, assign]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The starting value of the range. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="interface_c_p_t_plot_range.html#a447a54ef48bca11fcbae18587d6a424f" title="The starting value of the range as a double.">locationDouble</a> </dd></dl>

<p>Reimplemented in <a class="el" href="interface_c_p_t_mutable_plot_range.html#ac0b080bf56b8830c38cfe13288b1c874">CPTMutablePlotRange</a>.</p>

</div>
</div>
<a class="anchor" id="a447a54ef48bca11fcbae18587d6a424f"></a><!-- doxytag: member="CPTPlotRange::locationDouble" ref="a447a54ef48bca11fcbae18587d6a424f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- CPTPlotRange:<code> [read, assign]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The starting value of the range as a <code>double</code>. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="interface_c_p_t_plot_range.html#a4a08297f54ea2d501bd8746f77f06d75" title="The starting value of the range.">location</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>Source/<a class="el" href="_c_p_t_plot_range_8h_source.html">CPTPlotRange.h</a></li>
<li>Source/CPTPlotRange.m</li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="interface_c_p_t_plot_range.html">CPTPlotRange</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
